<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich" template="embed/template.xhtml">

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<ui:define name="topnav">
		<ui:include src="/embed/menu.xhtml">
			<ui:param name="page" value="home" />
		</ui:include>
	</ui:define>
	<ui:define name="sidebar">
		<ui:include src="/login/login.xhtml" />
	</ui:define>

	<ui:define name="search">

		<ui:include src="/embed/search.xhtml" />

	</ui:define>

	<ui:define name="body">
		<rich:panel>
			<f:facet name="header">您的帐户信息如下：</f:facet>
			<h:form styleClass="register">
					<div class="formRow"><h:outputLabel for="customername">用户名：
					</h:outputLabel> #{currentCustomer.customerName}</div>
					<div class="formRow"><h:outputLabel for="customeremail">邮箱：
					</h:outputLabel> #{currentCustomer.email}</div>

					<s:link view="/changeMyAccount.xhtml" value="修改" propagation="none" />

			</h:form>
		</rich:panel>

		<div class="productbox" >
		 <f:subview id="sentInfo" rendered="#{addresses.rowAvailable}">
			<rich:panel>
				<f:facet name="header">您的地址信息如下：</f:facet>
				<h:form>
					<h:dataTable value="#{addresses}" var="item">
						<h:column>
						   <div class="formRow"><h:outputLabel>地址号</h:outputLabel> <h:outputText
								value="#{item.addressId}" /></div>
							<div class="formRow"><h:outputLabel>收件人</h:outputLabel> <h:outputText
								value="#{item.signName}" /></div>

							<div class="formRow"><h:outputLabel for="province">省份</h:outputLabel>
							<h:outputText value="#{item.province}" /></div>


							<div class="formRow"><h:outputLabel for="address">地址</h:outputLabel>
							<h:outputText value="#{item.detailAddress}" /></div>

							<div class="formRow"><h:outputLabel for="zipcode">邮编</h:outputLabel>
							<h:outputText value="#{item.zipcode}" /></div>
							<div class="formRow"><h:outputLabel for="telephone">电话</h:outputLabel>
							<h:outputText value="#{item.telephone}" /></div>
							<div class="formRow"><h:outputLabel for="telephone">配送方式</h:outputLabel>
							<h:outputText value="#{item.sentStyle}" /></div>
							<div class="formRow"><h:outputLabel for="telephone">配送时间</h:outputLabel>
							<h:outputText value="#{item.sentTime}" /></div>
 
						</h:column>
					</h:dataTable>
					<br />
				</h:form>
			</rich:panel>
		</f:subview>
       </div>
       
	</ui:define>
</ui:composition>





